import type { CommonGuessInstance } from '@/components/components'
import { ref } from 'vue'

// 组合式函数hook封装
export const useGuessList = () => {
  // 获取组件实例
  const guessRef = ref<CommonGuessInstance[]>([])

  // 触底获取分页数据
  const onScrolltolower = () => {
    guessRef.value?.loadMore()
  }

  return { guessRef, onScrolltolower }
}
